-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add documentation about reloading search analyzers #42865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation about reloading search analyzers #42865
Conversation
|
Pinging @elastic/es-search |
jimczi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cbuescher . I left some comments.
| @@ -0,0 +1,56 @@ | |||
| [[indices-reload-analyzers]] | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be marked as experimental.
| Using the <<analyzer reload API,indices-reload-analyzers>>, you can trigger reloading of the | ||
| synonym definition. The contents of the configured synonyms file will be reloaded and the | ||
| synonyms definition the filter uses will be updated. Note that if you trying to use the above | ||
| analyzer as an index analyzer will result in an error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would extract the last sentence in a NOTE in order to make sure that users are aware of the limitation.
| <2> Synonym filter is usable as a search_analyzer. | ||
|
|
||
| Calling the `_reload_search_analyzers` endpoint will now trigger reloading the | ||
| synonyms from the configured "synonym.txt" file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a NOTE regarding the fact that the reload is per node so you need to update your synonym.txt file on every node before calling reload.
|
@jimczi I will also reopen this against the new feature branch I had to create and address your comments there. |
This PR adds documentation to the feature being worked on in #42669